package com.fjec.im.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 013.用户留言表
 * </p>
 *
 * @author admin
 * @since 2020-09-23
 */
@Data
@TableName("biz_user_message")
public class BizUserMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 会话Id
     */
    @TableField("ConvId")
    private Long convId;

    /**
     * 发送人Id
     */
    @TableField("FromId")
    private Long fromId;


    /**
     * 接收方Id
     */
    @TableField("ToId")
    private Long toId;

    /**
     * 发送信息
     */
    @TableField("Content")
    private String content;

    /**
     * 发送时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 是否已读
     */
    @TableField("Readed")
    private Integer readed;
    /**
     * 读取时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

}
